home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Champak 99
/
(Vol 99) Jan 19 2010.iso
/
Games
/
beast_bash_beware.swf
/
scripts
/
frame_57
/
DoAction.as
Wrap
Text File
|
2010-01-19
|
40KB
|
556 lines
function §\x01\x02§()
{
return 639;
}
var §\x01§ = -450 + "\x01\x02"();
while(true)
{
if(eval("\x01") != 189)
{
if(eval("\x01") != 907)
{
if(eval("\x01") != 572)
{
if(eval("\x01") != 461)
{
if(eval("\x01") != 242)
{
if(eval("\x01") != 983)
{
if(eval("\x01") == 618)
{
set("\x01",eval("\x01") + 16);
set(§§pop(),§§pop() + function §\x01\x02§()
{
return 639;
});
toggleHighQuality();
§§pop()[§§pop()] = eval(§§pop() == §§pop());
set(§§constant(44),function()
{
this[§§constant(47)] = 1 - this[§§constant(34)] * 0.01;
this[§§constant(35)] += 10 * this[§§constant(37)];
this[§§constant(38)][§§constant(48)] = this[§§constant(47)] * 200;
this[§§constant(39)] = [this[§§constant(38)]];
this[§§constant(34)] -= 10;
if(this[§§constant(34)] <= 0)
{
this[§§constant(33)] = false;
delete this[§§constant(14)];
}
});
set(§§constant(41),function()
{
this[§§constant(47)] = 1 - this[§§constant(34)] * 0.01;
this[§§constant(35)] += 10 * this[§§constant(37)];
this[§§constant(38)][§§constant(48)] = this[§§constant(47)] * 200;
this[§§constant(39)] = [this[§§constant(38)]];
this[§§constant(34)] += 10;
if(this[§§constant(34)] >= 100)
{
this[§§constant(34)] = 100;
this[§§constant(38)][§§constant(48)] = 0;
this[§§constant(39)] = [this[§§constant(38)]];
this[§§constant(43)] = eval(§§constant(49));
delete this[§§constant(14)];
}
});
set(§§constant(7),2);
set(§§constant(18),§\§\§constant(18)§ = eval(§§constant(45))[§§constant(20) + eval(§§constant(6))[eval(§§constant(7))][§§constant(8)]]);
eval(§§constant(28))[§§constant(29)] = new §\§\§constant(50)§(eval(§§constant(28)));
eval(§§constant(28))[§§constant(29)][§§constant(30)](eval(§§constant(6))[eval(§§constant(7))][§§constant(27)]);
eval(§§constant(22))[§§constant(23)] = eval(§§constant(6))[eval(§§constant(7))][§§constant(24)];
eval(§§constant(25))[§§constant(23)] = eval(§§constant(6))[eval(§§constant(7))][§§constant(26)];
set(§§constant(37),-1);
eval(§§constant(28))[§§constant(29)][§§constant(30)](eval(§§constant(6))[eval(§§constant(7))][§§constant(27)]);
set(§§constant(51),eval(§§constant(45))[§§constant(20) + eval(§§constant(6))[eval(§§constant(7))][§§constant(8)]]);
eval(§§constant(51))[§§constant(33)] = true;
eval(§§constant(51))[§§constant(34)] = 0;
eval(§§constant(51))[§§constant(35)] = 300 - eval(§§constant(37)) * 100;
eval(§§constant(51))[§§constant(36)] = 210;
eval(§§constant(51))[§§constant(37)] = eval(§§constant(37));
eval(§§constant(51))[§§constant(38)] = new eval(§§constant(10))[§§constant(39)][§§constant(40)](200,0,1);
eval(§§constant(51))[§§constant(39)] = [eval(§§constant(51))[§§constant(38)]];
eval(§§constant(51))[§§constant(14)] = eval(§§constant(41));
stop();
break;
}
if(eval("\x01") == 305)
{
set("\x01",eval("\x01") + 313);
if(function §\x01\x02§()
{
return 639;
})
{
set("\x01",eval("\x01") + 16);
}
continue;
}
if(eval("\x01") == 634)
{
set("\x01",eval("\x01") - 173);
continue;
continue;
}
if(eval("\x01") != 57)
{
if(eval("\x01") != 454)
{
if(eval("\x01") == 168)
{
set("\x01",eval("\x01") + 815);
}
if(eval("\x01") == 879)
{
set("\x01",eval("\x01") - 464);
var §§pop() = function §\x01\x02§()
{
return 639;
};
continue;
}
if(eval("\x01") == 594)
{
set("\x01",eval("\x01") + 10);
if(function §\x01\x02§()
{
return 639;
})
{
set("\x01",eval("\x01") + 138);
}
continue;
}
if(eval("\x01") != 415)
{
if(eval("\x01") != 809)
{
if(eval("\x01") != 604)
{
if(eval("\x01") == 742)
{
set("\x01",eval("\x01") - 234);
flash.external.ExternalInterface.call("MATTEL.tracker.Tracker.track",{name:"Beast Bash Beware",campaign:"Beast Bash",channel:"Games",contenttype:"Game",action:"Play"});
frameLoop = function()
{
if(_root.requestBeast == true)
{
if(mcBeast._x == mcBeast.gotox && mcBeastFist.isReady == true && mcBeastClaw.isReady == true)
{
_root.requestBeast = false;
doBeastBash();
}
}
_root.gPauseTimer = Math.max(0,_root.gPauseTimer - 1);
if(_root.gPauseTimer == 0)
{
switch(_root.gGameMode)
{
case "beast":
if(Key.isDown(37))
{
mcBeast.mySpeed = Math.max(-12,mcBeast.mySpeed - 1);
if(mcBeast._x <= 30)
{
mcBeast.mySpeed = 0;
}
mcBeastHead.gotoAndStop("right");
}
else if(Key.isDown(39))
{
mcBeast.mySpeed = Math.min(12,mcBeast.mySpeed + 1);
if(mcBeast._x >= 560)
{
mcBeast.mySpeed = 0;
}
mcBeastHead.gotoAndStop("left");
}
else
{
mcBeast.mySpeed *= 0.9;
if(Math.abs(mcBeast.mySpeed) < 0.5)
{
mcBeast.mySpeed = 0;
}
}
mcBeast._x += mcBeast.mySpeed;
if(gKeyDownZ == false)
{
if(Key.isDown(90))
{
gKeyDownZ = true;
doBeastClaw();
}
}
else if(!Key.isDown(90))
{
gKeyDownZ = false;
}
if(gKeyDownSpace == false)
{
if(Key.isDown(32))
{
gKeyDownSpace = true;
doBeastFist();
}
}
else if(!Key.isDown(32))
{
gKeyDownSpace = false;
}
if(random(100) == 1 && mcPickup.myActive == false)
{
doCreatePickup();
}
if(mcPickup.myActive == true)
{
if(mcBeastFist.mcCollider.hitTest(mcPickup.mcCollider) || mcBeastClaw.mcCollider.hitTest(mcPickup.mcCollider))
{
_root.gScore += 100;
_root.TxtScore.text = _root.gScore;
mcPickup.gotoAndPlay("hit");
}
}
if(mcCar.myActive == true)
{
if(mcCar.myPaused == true)
{
mcCar.mySpeed *= 0.8;
}
else
{
mcCar.mySpeed = Math.min(5 + _root.gLevel * 2,mcCar.mySpeed + 1);
}
newX = mcCar._x + mcCar.mySpeed;
mcCar.isCollision = false;
if(mcBeastFist.mcCollider.hitTest(mcCar) || mcBeastClaw.mcCollider.hitTest(mcCar))
{
mcCar._x -= mcCar.mySpeed;
mcCar.mySpeed *= -0.5;
if(mcBeastFist.mcCollider.hitTest(mcCar) || mcBeastClaw.mcCollider.hitTest(mcCar))
{
doDestroyCar();
}
}
else
{
mcCar._x = newX;
}
if(mcCar._x >= 700)
{
mcCar.mySpeed = 0;
launchTimer = getTimer();
doCreateLauncher();
}
else if(mcCar._x >= eval(§§constant(12))[§§constant(16)] && eval(§§constant(56))[§§constant(79)] == false)
{
eval(§§constant(56))[§§constant(79)] = true;
eval(§§constant(56))[§§constant(80)] = true;
eval(§§constant(56))[§§constant(164)] = §§constant(11)(eval(§§constant(165)),random(4) * 1000);
}
if(eval(§§constant(56))[§§constant(80)] == true)
{
if(eval(§§constant(47))[§§constant(155)](eval(§§constant(56))[§§constant(16)] - eval(§§constant(12))[§§constant(16)]) > 100)
{
eval(§§constant(56))[§§constant(164)] = null;
§§constant(165)();
}
}
}
eval(§§constant(56))[§§constant(166)][§§constant(167)] += eval(§§constant(56))[§§constant(13)] * 2;
eval(§§constant(56))[§§constant(168)][§§constant(167)] += eval(§§constant(56))[§§constant(13)] * 2;
if(eval(§§constant(94))[§§constant(57)] == true)
{
eval(§§constant(94))[§§constant(36)] = eval(§§constant(12))[§§constant(16)];
if(getTimer() > eval(§§constant(162)) + 10000 && eval(§§constant(94))[§§constant(38)] == true)
{
eval(§§constant(94))[§§constant(38)] = false;
eval(§§constant(94))[§§constant(42)](§§constant(169));
}
else if(eval(§§constant(94))[§§constant(36)] > eval(§§constant(94))[§§constant(16)])
{
set(§§constant(170),eval(§§constant(47))[§§constant(48)](6 + _root[§§constant(46)] * 2,(eval(§§constant(94))[§§constant(36)] - eval(§§constant(94))[§§constant(16)]) * 0.3));
eval(§§constant(94))[§§constant(16)] += eval(§§constant(170));
if(eval(§§constant(47))[§§constant(155)](eval(§§constant(94))[§§constant(36)] - eval(§§constant(94))[§§constant(16)]) <= 1 && eval(§§constant(94))[§§constant(38)] == true)
{
eval(§§constant(94))[§§constant(16)] = eval(§§constant(94))[§§constant(36)];
eval(§§constant(94))[§§constant(38)] = false;
eval(§§constant(94))[§§constant(42)](§§constant(169));
}
}
else if(eval(§§constant(94))[§§constant(36)] < eval(§§constant(94))[§§constant(16)])
{
set(§§constant(170),eval(§§constant(47))[§§constant(152)](-6 - _root[§§constant(46)] * 2,(eval(§§constant(94))[§§constant(36)] - eval(§§constant(94))[§§constant(16)]) * 0.3));
eval(§§constant(94))[§§constant(16)] += eval(§§constant(170));
if(eval(§§constant(47))[§§constant(155)](eval(§§constant(94))[§§constant(36)] - eval(§§constant(94))[§§constant(16)]) <= 1 && eval(§§constant(94))[§§constant(38)] == true)
{
eval(§§constant(94))[§§constant(16)] = eval(§§constant(94))[§§constant(36)];
eval(§§constant(94))[§§constant(38)] = false;
eval(§§constant(94))[§§constant(42)](§§constant(169));
}
}
}
break;
case "hero":
if(mcCar.myActive)
{
if(Key.isDown(37))
{
if(_root.gIsPlaying == false)
{
_root.gIsPlaying = true;
}
mcCar.mySpeed = Math.max(-12,mcCar.mySpeed - 1);
if(mcCar._x <= -100)
{
mcCar.mySpeed = 0;
}
}
else if(Key.isDown(39))
{
mcCar.mySpeed = Math.min(12,mcCar.mySpeed + 1);
if(mcCar._x >= 700)
{
mcCar.mySpeed = 0;
doCreateLauncher();
}
}
else
{
mcCar.mySpeed *= 0.9;
if(Math.abs(mcCar.mySpeed) < 0.5)
{
mcCar.mySpeed = 0;
}
}
newX = mcCar._x + mcCar.mySpeed;
mcCar.isCollision = false;
mcCar.wheelF._rotation += mcCar.mySpeed * 2;
mcCar.wheelR._rotation += mcCar.mySpeed * 2;
if(mcBeastFist.mcCollider.hitTest(mcCar) || mcBeastClaw.mcCollider.hitTest(mcCar))
{
mcCar._x -= mcCar.mySpeed;
mcCar.mySpeed *= -0.5;
if(mcBeastFist.mcCollider.hitTest(mcCar) || mcBeastClaw.mcCollider.hitTest(mcCar))
{
doDestroyCar();
}
}
else
{
mcCar._x = newX;
}
if(random(100) == 1 && mcPickup.myActive == false)
{
doCreatePickup();
}
if(mcPickup.myActive == true)
{
if(mcPickup.mcCollider.hitTest(mcCar))
{
_root.gScore += 100;
_root.TxtScore.text = _root.gScore;
mcPickup.gotoAndPlay("hit");
}
}
}
if(mcBeast.gotox > mcBeast._x)
{
myMove = Math.min(10 + _root.gLevel * 2,(mcBeast.gotox - mcBeast._x) * 0.5);
mcBeast._x += myMove;
if(Math.abs(mcBeast.gotox - mcBeast._x) <= 1)
{
mcBeast._x = mcBeast.gotox;
_root.doRequestBeast();
}
}
else if(mcBeast.gotox < mcBeast._x)
{
myMove = Math.max(-10 - _root.gLevel * 2,(mcBeast.gotox - mcBeast._x) * 0.5);
mcBeast._x += myMove;
if(Math.abs(mcBeast.gotox - mcBeast._x) <= 1)
{
mcBeast._x = mcBeast.gotox;
_root.doRequestBeast();
}
}
break;
case "hero_launch":
if(mcCarRamp.isReady)
{
if(Key.isDown(37))
{
mcCarRamp.mySpeed = Math.max(-12,mcCarRamp.mySpeed - 1);
if(mcCarRamp._x <= -100)
{
mcCarRamp.mySpeed = 0;
}
}
else if(Key.isDown(39))
{
mcCarRamp.mySpeed = Math.min(12,mcCarRamp.mySpeed + 1);
if(mcCarRamp._x >= 760)
{
mcCarRamp.mySpeed = 0;
}
}
else
{
mcCarRamp.mySpeed *= 0.9;
if(Math.abs(mcCarRamp.mySpeed) < 0.5)
{
mcCarRamp.mySpeed = 0;
}
}
mcCarRamp._x += mcCarRamp.mySpeed;
if(mcBeast.gotox > mcBeast._x)
{
myMove = Math.min(10 + _root.gLevel * 2,(mcBeast.gotox - mcBeast._x) * 0.5);
mcBeast._x += myMove;
if(Math.abs(mcBeast.gotox - mcBeast._x) <= 1)
{
mcBeast._x = mcBeast.gotox;
_root.doRequestBeast();
}
}
else if(mcBeast.gotox < mcBeast._x)
{
myMove = Math.max(-10 + _root.gLevel * 2,(mcBeast.gotox - mcBeast._x) * 0.5);
mcBeast._x += myMove;
if(Math.abs(mcBeast.gotox - mcBeast._x) <= 1)
{
mcBeast._x = mcBeast.gotox;
_root.doRequestBeast();
}
}
if(Key.isDown(38) || Key.isDown(32))
{
mcCarRamp.isReady = false;
mcCarRamp.gotoAndPlay("launch");
}
}
break;
case "hero_resetlauncher":
case "beast_resetlauncher":
mcCarRamp.gotox = 312;
if(mcCarRamp.gotox > mcCarRamp._x)
{
myMove = Math.min(8,(mcCarRamp.gotox - mcCarRamp._x) * 0.5);
mcCarRamp._x += myMove;
if(Math.abs(mcCarRamp.gotox - mcCarRamp._x) <= 1)
{
mcCarRamp._x = mcCarRamp.gotox;
doCreateCar();
}
}
else if(mcCarRamp.gotox < mcCarRamp._x)
{
myMove = Math.max(-8,(mcCarRamp.gotox - mcCarRamp._x) * 0.5);
mcCarRamp._x += myMove;
if(Math.abs(mcCarRamp.gotox - mcCarRamp._x) <= 1)
{
mcCarRamp._x = mcCarRamp.gotox;
doCreateCar();
}
}
else
{
mcCarRamp._x = mcCarRamp.gotox;
doCreateCar();
}
}
}
if(_root[§§constant(129)] == true)
{
set(§§constant(171),-8 + random(16));
eval(§§constant(19))[§§constant(16)] = eval(§§constant(12))[§§constant(16)] + eval(§§constant(19))[§§constant(14)][0] + (-8 + random(16));
eval(§§constant(19))[§§constant(15)] = eval(§§constant(12))[§§constant(15)] + eval(§§constant(19))[§§constant(14)][1] + (-8 + random(16));
eval(§§constant(20))[§§constant(16)] = eval(§§constant(12))[§§constant(16)] + eval(§§constant(20))[§§constant(14)][0] + (-8 + random(16));
eval(§§constant(20))[§§constant(15)] = eval(§§constant(12))[§§constant(15)] + eval(§§constant(20))[§§constant(14)][1] + (-8 + random(16));
eval(§§constant(21))[§§constant(16)] = eval(§§constant(12))[§§constant(16)] + eval(§§constant(21))[§§constant(14)][0] + eval(§§constant(171));
eval(§§constant(21))[§§constant(15)] = eval(§§constant(12))[§§constant(15)] + eval(§§constant(21))[§§constant(14)][1] + eval(§§constant(171));
eval(§§constant(22))[§§constant(16)] = eval(§§constant(12))[§§constant(16)] + eval(§§constant(22))[§§constant(14)][0] + eval(§§constant(171));
eval(§§constant(22))[§§constant(15)] = eval(§§constant(21))[§§constant(172)][§§constant(15)] + 40 + eval(§§constant(171));
eval(§§constant(23))[§§constant(16)] = eval(§§constant(12))[§§constant(16)] + eval(§§constant(23))[§§constant(14)][0] + eval(§§constant(171));
eval(§§constant(23))[§§constant(15)] = eval(§§constant(12))[§§constant(15)] + eval(§§constant(23))[§§constant(14)][1] + eval(§§constant(171));
}
else
{
eval(§§constant(19))[§§constant(16)] = eval(§§constant(12))[§§constant(16)] + eval(§§constant(19))[§§constant(14)][0];
eval(§§constant(19))[§§constant(15)] = eval(§§constant(12))[§§constant(15)] + eval(§§constant(19))[§§constant(14)][1];
eval(§§constant(20))[§§constant(16)] = eval(§§constant(12))[§§constant(16)] + eval(§§constant(20))[§§constant(14)][0];
eval(§§constant(20))[§§constant(15)] = eval(§§constant(12))[§§constant(15)] + eval(§§constant(20))[§§constant(14)][1];
eval(§§constant(21))[§§constant(16)] = eval(§§constant(12))[§§constant(16)] + eval(§§constant(21))[§§constant(14)][0];
eval(§§constant(21))[§§constant(15)] = eval(§§constant(12))[§§constant(15)] + eval(§§constant(21))[§§constant(14)][1];
eval(§§constant(22))[§§constant(16)] = eval(§§constant(12))[§§constant(16)] + eval(§§constant(22))[§§constant(14)][0];
eval(§§constant(22))[§§constant(15)] = eval(§§constant(21))[§§constant(172)][§§constant(15)] + 40;
eval(§§constant(23))[§§constant(16)] = eval(§§constant(12))[§§constant(16)] + eval(§§constant(23))[§§constant(14)][0];
eval(§§constant(23))[§§constant(15)] = eval(§§constant(12))[§§constant(15)] + eval(§§constant(23))[§§constant(14)][1];
}
};
set(§§constant(173),function()
{
return undefined;
});
§§constant(174)();
eval(§§constant(5))["\x1f\x0b\x02�"] = eval(§§constant(175));
stop();
break;
}
if(eval("\x01") == 508)
{
set("\x01",eval("\x01") - 508);
break;
}
}
set("\x01",eval("\x01") + 138);
continue;
}
set("\x01",eval("\x01") - 215);
§§push(!function §\x01\x02§()
{
return 639;
});
}
set("\x01",eval("\x01") + 492);
}
set("\x01",eval("\x01") - 286);
if(function §\x01\x02§()
{
return 639;
})
{
set("\x01",eval("\x01") + 815);
}
continue;
§§push("\x0f");
}
set("\x01",eval("\x01") + 515);
}
set("\x01",eval("\x01") - 411);
continue;
continue;
}
set("\x01",eval("\x01") + 219);
continue;
}
set("\x01",eval("\x01") - 7);
§§push(true);
continue;
}
set("\x01",eval("\x01") + 307);
§§push("\x0f");
§§push(1);
}
set("\x01",eval("\x01") - 98);
§§push(eval(function §\x01\x02§()
{
return 639;
}));
continue;
}
set("\x01",eval("\x01") + 116);
§§push(true);
}